$(function(){
	$(".jihua_jieshu span").on("click",change);
	$(".dibu_ww>div").on("click",changeurl);
	
	
	
	
	
	
	
	
	
});
function change(){
	$(".jihua_jieshu span").css("border-bottom-width","0px");
	$(this).css("border-bottom-width","3px");
}
var arr;
function changeurl() {
	arr=$(".dibu_ww>div");
	var obj = this;
	/*把四格图标换成灰色*/
	$(".dibu_ww").children().eq(0).children().eq(0).attr("src", "../../img/app/wrf/6/h1.png");
	$(".dibu_ww").children().eq(1).children().eq(0).attr("src", "../../img/app/wrf/6/h2.png");
	$(".dibu_ww").children().eq(2).children().eq(0).attr("src", "../../img/app/wrf/6/h3.png");
	var url = "";
	var index = "";
	for (var i =0;i<arr.length;i++) {
		if (arr[i]==obj) {
			index = i+1;
			break;
		} 
	}
	index=index+"";
	switch(index) {
		case "1":
			url = "../../img/app/wrf/6/g1.png";
			break;
		case "2":
			url = "../../img/app/wrf/6/g2.png";
			break;
		case "3":
			url = "../../img/app/wrf/6/g3.png";
			break;
	}
		$(obj).children().eq(0).attr("src", url);
}
